package com.example.basicdemo.model.domain;

import com.isyscore.os.dev.api.IsyscoreObject;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 数据角色表
 * </p>
 *
 * @author
 * @since 2019-08-21
 */
public class SysAuthDomain implements IsyscoreObject {

    /**
     *
     */
    private Integer id;

    /**
     *
     */
    private String name;

    /**
     * 角色的类型，1：管理员角色，2：其他
     */
    private Integer type;

    /**
     * 状态，1：可用，0：冻结
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作者
     */
    private String operator;

    /**
     * 最后一次更新的时间
     */
    private Date gmtCreate;

    /**
     * 最后一次更新者的ip地址
     */
    private String operateIp;

    /**
     *
     */
    private Date gmtModified;

    List<DataSpaceRuleDomain> rule;

    public List<DataSpaceRuleDomain> getRule() {
        return rule;
    }

    public void setRule(List<DataSpaceRuleDomain> rule) {
        this.rule = rule;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getOperateIp() {
        return operateIp;
    }

    public void setOperateIp(String operateIp) {
        this.operateIp = operateIp;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "SysAuthDomain{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                ", operator='" + operator + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", operateIp='" + operateIp + '\'' +
                ", gmtModified=" + gmtModified +
                ", rule=" + rule +
                '}';
    }
}
